package com.base.common.edu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @Author Maple.Chen
 * @Description 在授课程实体（edu_in_teaching_course）
 * @Date 16:46 2021/1/29
 **/
@Data
@ApiModel(description = "在授课程实体")
@JsonIgnoreProperties(value = {"handler"})
public class ValidCourse implements Serializable {

    private static final long serialVersionUID = 6532960096103155068L;
    @ApiModelProperty( value = "在授课程ID：UUID")
    private String t_c_id;
    @ApiModelProperty( value = "所属课程")
    private Course course;
    @ApiModelProperty( value = "授课教师")
    private Staff staff;
    @ApiModelProperty( value = "所用教材")
    private TextBook textBook;
    @ApiModelProperty( value = "课程开始时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date beginDate;
    @ApiModelProperty( value = "课程结束时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    @ApiModelProperty( value = "选修该课程的班级")
    private Set<EduClass> eduClasses = new HashSet<EduClass>();

}
